/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import '../../../../styles/variables.less';

.right-panel-heading {
  margin-bottom: 8px !important;
  color: @text-grey-muted;
}

.right-panel-list-item:last-child {
  border-bottom: none;
}

.right-panel-list-item {
  padding: 12px 24px;

  &:hover {
    background-color: @grey-1;
  }

  .entity-button-icon {
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    svg {
      height: 20px;
      width: 20px;
    }
  }

  .right-panel-list-item-link {
    text-decoration: none;
  }
}

.my-task-widget-container {
  display: flex;
  flex-direction: column;
  height: 100%;

  .ant-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0px;
    overflow: hidden;
  }

  .my-task-header {
    flex-shrink: 0;
    padding: 12px 20px;
    border-bottom: 1px solid @grey-15;
  }

  .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .entity-list-body {
    flex: 1;
    padding: 20px 20px 0 20px;
    margin: 0;
    overflow-y: auto;
    min-height: 0;
  }

  .my-task-footer,
  .widget-footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background-color: @white;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
  }

  .ant-dropdown-menu-item {
    padding: @padding-md @padding-lg;
    height: 40px;

    &:hover {
      color: @blue-34;
      background-color: @blue-33;
      font-weight: @font-medium;
    }
  }

  .ant-dropdown-menu-item-active {
    color: @blue-34;
    background-color: @blue-33;
    font-weight: @font-medium;
  }

  .task-feed-card-v1-new {
    padding-top: @size-xs;
    padding-bottom: @size-xs;
  }
}

.widget-header-options {
  padding: 10px;
  height: 40px;
  min-width: 40px;
  max-width: 150px;
  border-radius: 8px;
  border: 1px solid @grey-15;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: @white;

  &:hover {
    background-color: @grey-1;
    border-color: @primary-color;
  }

  .widget-header-menu {
    padding: 8px;
    border-radius: 12px;
  }
}

.entity-icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}
